<include file="Public:header"/>

<script type="text/javascript" src="__PUBLIC__/fckeditor/fckeditor.js"></script>
<script type="text/javascript">

   window.onload = function()
   {
      var oFCKeditor = new FCKeditor( 'htmlbody' ) ;
      oFCKeditor.BasePath = "__PUBLIC__/fckeditor/";
 	  oFCKeditor.Width="800";
 	  oFCKeditor.Height="300";
      oFCKeditor.ReplaceTextarea() ;
    }
	function fnOnSubmit(form) 
	{
    	var oEditor = FCKeditorAPI.GetInstance('htmlbody');
    	oEditor.UpdateLinkedField();
	}  
 
</script>
<div class="main-wrap">
	<div class="position">后台管理:&nbsp;&nbsp;成功案例管理&nbsp;>>&nbsp;<span>修改成功案例</span></div>
	<div class="toolbar">
		<a href="__URL__/add">添加成功案例</a>
	</div>	
    <div class="title">修改成功案例</div>
	<div class="content">
                <form method="post" action="__URL__/edit" name="form1" enctype="multipart/form-data">
                <table cellspacing="0" cellpadding="0" border="1">
                	<input type="hidden" name="id" value="{$vo['id']}">
                    <tr><td>案例标题:</td><td align="left">
                    		<input type="text" name="title" id="title" size="50" value="{$vo['title']}">
                    </td></tr>
                    <tr><td>案例地址:</td><td align="left">
                    		<input type="text" name="link" id="link" size="50" value="{$vo['link']}">
                    </td></tr>                    
					<tr><td>案例图片:</td><td align="left">
                    		<input type="file" name="thumb"  size="50">
                    </td></tr>
                    <tr><td>案例简介:</td><td align="left">
                    		<textarea name="intro" cols="80" rows="4">{$vo['intro']}</textarea>
                    </td></tr>
                    <tr><td>结束时间:</td><td align="left">
                    		<input type="text" name="closetime" id="closetime" size="20" value="{$vo['closetime']}">
                    </td></tr>   
                    <tr><td>永久链接:</td><td align="left">
                    		<input type="text" name="url" id="url" size="40"  value="{$vo['url']}">
                    </td></tr>                                         
                    <tr><td>排序:</td><td align="left">
                    		<input type="text" name="orderid" id="orderid" size="20"  value="{$vo['orderid']}">
                    </td></tr>   
                    <tr><td>推荐显示:</td><td align="left">
                    		<input type="radio" name="recomm" value="0" <php>if($vo['recomm']==0)echo ' checked';</php>>&nbsp;不推荐&nbsp;
                    		<input type="radio" name="recomm" value="1" <php>if($vo['recomm']==1)echo ' checked';</php>>&nbsp;推荐&nbsp;
                   	</td></tr>                                     
                    <tr><td>案例描述:</td><td align="left">
                    		<textarea name="htmlbody" id="htmlbody" row="10" cols="80">{$vo['htmlbody']}</textarea>
                    </td></tr>
                    <tr><td colspan="2"><input type="submit" class="mybutton" name="add" value="提交修改"></td></tr>
                </table>
                </form>					              
	</div>
    <div class="clear"></div>
</div>

<include file="Public:footer"/>